package com.woniuxy.service.impl;

import com.woniuxy.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.woniuxy.dao.AuthDao;
import com.woniuxy.service.AuthService;

/**
 * TODO
 *
 * @Description
 * @Author jresm骏
 * @Date 2022/12/5 19:58
 **/
@Service
public class AuthServiceImpl implements AuthService {
    @Autowired
    AuthDao authDao;

    @Override
    public User addOne(User user) {
        return  authDao.save(user);
    }

    @Override
    public User findUser(User user) {
        return authDao.findByUsername(user.getUsername());
    }
}
